package com.itheima.个人代码.IO流2;

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

public class Demo5 {
    public static void main(String[] args) throws IOException {
        FileReader fr=new FileReader("IO流2和对象操作流properties\\stu.txt");
        char[] chars=new char[1024];
        int ch;
        while((ch=fr.read(chars))!=-1){
            System.out.println(new String(chars));


        }
    }
}
